package com.jsnj33.pdaproject.constant;

/**
 * 作者：LGP on 2017/12/28 14:24
 * 邮箱：1712115388@qq.com
 */
public class Constants {
    //线上
//    public static String BASEURL = "http://njshdz001.gnway.cc:9090/";

    //黄赛博本地
//    public static String BASEURL = "http://192.168.1.119:8080";
    //客户内网
    public static String BASEURL = "";

    //登陆-获取账套
    public static String LOGIN_SET_OF_BOOK = "UserWork/dlzt";
    //登陆
    public static String LOGIN = "UserWork/login";
    //扫描货品码
    public static String SCANNING_PRODUCT_CODE = BASEURL + "UserWork/";
    //箱码查询
    public static String SCANNING_XINAGMALOOK = BASEURL + "pda/getBoxInfo";    //箱码查询
    //箱码绑定
    public static String SCANNING_XINAGMABIND = BASEURL + "pda/boxContrast";
    //获取货品主要信息；
    public static String SCANNING_PRODUCT_NAME_ZANGU = BASEURL + "UserWork/hptm";
    //进库/出库
    public static String SCANNING_PRODUCT_NAME_JINKU = BASEURL + "UserWork/crktzd";
    //进库的商品信息
    public static String SCANNING_PRODUCT_NAME_JINKUGOODSINFO = BASEURL + "UserWork/hptmtzd";
    //全部订单提交
    public static String SUBMIT_ZANGU = BASEURL + "UserWork/savezgdcg";
    //报工单提交
    public static String SUBMIT_JOB = BASEURL + "UserWork/savebgd";
    //工号查询进库出库记录
    public static String SUBMIT_INOUTRECORD = BASEURL + "UserWork/listtzd";
    //记录
    public static String RECORD_LIST = BASEURL + "pda/getDelivery";
    //工序查询
    public static String workProByPda = "pda/workProByPda";
    //报工单原因列表
    public static String QUEARLIST = "/UserWork/listBads?zc_no=";

    public static void setBaseUrl(String url) {
        BASEURL = url;
        SCANNING_PRODUCT_CODE = BASEURL + "UserWork/";
        SCANNING_PRODUCT_NAME_ZANGU = BASEURL + "UserWork/hptm";
        SUBMIT_ZANGU = BASEURL + "UserWork/savezgdcg";
        SUBMIT_JOB = BASEURL + "UserWork/savebgd";
        SCANNING_XINAGMALOOK = BASEURL + "pda/getBoxInfo";
        SCANNING_XINAGMABIND = BASEURL + "pda/boxContrast";
        RECORD_LIST = BASEURL + "pda/getDelivery";
        SCANNING_PRODUCT_NAME_JINKUGOODSINFO = BASEURL + "UserWork/hptmtzd";
        SCANNING_PRODUCT_NAME_JINKU = BASEURL + "UserWork/crktzd";
        SUBMIT_INOUTRECORD = BASEURL + "UserWork/listtzd";
        QUEARLIST = BASEURL + "/UserWork/listBads?zc_no=";

    }
}
